package com.example.demo.main;

import java.math.BigDecimal;

public class Collection {
    private Long collectionId;

    private String userName;

    private Long goodsId;

    private BigDecimal price;

    private String goodsPicture;

    private String goodsName;

    private Integer evaluationCount;

    public Collection() {
    }

    public Collection(Long collectionId, String userName, Long goodsId, BigDecimal price, String goodsPicture, String goodsName, Integer evaluationCount) {
        this.collectionId = collectionId;
        this.userName = userName;
        this.goodsId = goodsId;
        this.price = price;
        this.goodsPicture = goodsPicture;
        this.goodsName = goodsName;
        this.evaluationCount = evaluationCount;
    }

    public Long getCollectionId() {
        return collectionId;
    }

    public void setCollectionId(Long collectionId) {
        this.collectionId = collectionId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getGoodsPicture() {
        return goodsPicture;
    }

    public void setGoodsPicture(String goodsPicture) {
        this.goodsPicture = goodsPicture == null ? null : goodsPicture.trim();
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public Integer getEvaluationCount() {
        return evaluationCount;
    }

    public void setEvaluationCount(Integer evaluationCount) {
        this.evaluationCount = evaluationCount;
    }
}